package com.ebeijia.mybatis.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.ebeijia.dto.ApplyWaterDto;
import com.ebeijia.mybatis.pojo.ApplyInfo;
import com.ebeijia.query.ApplyQuery;

public interface ApplyInfoMapper {
	//获取所有的水表检修信息
	List<ApplyInfo> getBusinessRepair(String applyUserId);
	
    int deleteByPrimaryKey(String id);
    //故障报修 申请 
    int insert(ApplyInfo apply);

    int insertSelective(ApplyInfo record);

    ApplyInfo selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ApplyInfo record);

    int updateByPrimaryKey(ApplyInfo record);
	List<ApplyInfo> selectByParams(@Param(value = "params") Map<String, Object> params);

    
    List<ApplyWaterDto> queryApplyDetail(ApplyQuery applyQuery);

    int queryApplyDetailCount(ApplyQuery applyQuery);

    ApplyInfo selectByParimaryApplyNo(String applyNo);

    int updateApplyState(Map<String,Object> params);

    List<ApplyWaterDto> selectApplyList(ApplyQuery applyQuery);

    int selectApplyListCount(ApplyQuery applyQuery);
}